package com.sjgtw.cloud.job.mapper;


import java.util.List;
import com.sjgtw.cloud.job.domain.SysJobLog;

/**
 * <p>Title: 定时任务执行日志--数据层--接口</p>
 * <p>Description: </p>
 *
* @author Admin
 * @date 2020-9-21
 */
public interface SysJobLogMapper {
    /**
     * <p>Title: 获取quartz调度器日志的计划任务</p>
     * <p>Description: </p>
     *
     * @param jobLog 调度日志信息
     * @return 调度任务日志集合
     */
    public List<SysJobLog> selectJobLogList(SysJobLog jobLog);

    /**
     * <p>Title: 查询所有调度任务日志</p>
     * <p>Description: </p>
     *
     * @return
     */
    public List<SysJobLog> selectJobLogAll();

    /**
     * <p>Title: 通过调度任务日志ID查询调度信息</p>
     * <p>Description: </p>
     *
     * @param jobLogId 调度任务日志ID
     * @return 调度任务日志对象信息
     */
    public SysJobLog selectJobLogById(Long jobLogId);

    /**
     * <p>Title: 新增任务日志</p>
     * <p>Description: </p>
     *
     * @param jobLog 调度日志信息
     */
    public int insertJobLog(SysJobLog jobLog);

    /**
     * <p>Title: 批量删除调度日志信息</p>
     * <p>Description: </p>
     *
     * @param logIds 需要删除的日志ID
     * @return 结果
     */
    public int deleteJobLogByIds(Long[] logIds);

    /**
     * <p>Title: 删除任务日志</p>
     * <p>Description: </p>
     *
     * @param jobId 调度日志ID
     * @return 结果
     */
    public int deleteJobLogById(Long jobId);

    /**
     * <p>Title: 清空任务日志</p>
     * <p>Description: </p>
     */
    public void cleanJobLog();
}
